project(chain-make)
add_executable(${PROJECT_NAME}
        copy-vm-file.cc 
        MakeManager.cpp
)
target_include_directories(${PROJECT_NAME} PRIVATE ${GENERATE_DIR})
target_link_libraries(${PROJECT_NAME} PRIVATE chainsaw)

install(TARGETS ${PROJECT_NAME}
        RUNTIME DESTINATION ${INSTALL_BIN_DIR}
)

set_target_properties(${PROJECT_NAME} PROPERTIES
        INSTALL_RPATH "$ORIGIN/../${INSTALL_LIB_DIR}"
        INSTALL_RPATH_USE_LINK_PATH ON
)

add_dependencies(${PROJECT_NAME} generate_tasks)